package com.cy.pj.sys.service.impl;

import com.cy.pj.sys.dao.SysHotelDao;
import com.cy.pj.sys.pojo.SysHotel;
import com.cy.pj.sys.service.SysHotelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysHotelServiceImpl implements SysHotelService {
    @Autowired
    private SysHotelDao sysHotelDao;



    @Override
    public List<SysHotel> selectHotes() {
        return sysHotelDao.selectHotes();
    }

    @Override
    public void insertHotel(SysHotel sysHotel) {
        sysHotelDao.insertHotel(sysHotel);
    }


    @Override
    public int deleteById(Long... id) {
        int rows=sysHotelDao.deleteById(id);
        return rows;
    }

    @Override
    public int updateHotel(SysHotel sysHotel) {
        return sysHotelDao.updateHotel(sysHotel);
    }
}
